package kunsch.bexp;

import kunsch.bexp.visitor.Visitor;

public class Not extends Expression
{

	private Expression exp;

	public Not(Expression exp)
	{
		this.setExp(exp);
		
	}

	@Override
	public String toString()
	{
		return getExp()+"'";
	}
	
	
	@Override
	public void accept(Visitor v)
	{
		v.visit(this);
	}

	public Expression getExp()
	{
		return exp;
	}

	public void setExp(Expression exp)
	{
		this.exp = exp;
		exp.setParent(this);
	}
}
